package logger;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;

public class Logger {

	
	public static void showErrorMessage(Shell shell,String message){
		MessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
		mb.setText("Error");
		mb.setMessage(message);
		mb.open();	
	}
	public static void showWarningMessage(Shell shell,String message){
		MessageBox mb = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);
		mb.setText("Warning");
		mb.setMessage(message);
		mb.open();	
	}
	public static void showInfoMessage(Shell shell,String message){
		MessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);
		mb.setText("Warning");
		mb.setMessage(message);
		mb.open();	
	}	

}
